Optimal. Leaf size=216 \[ -\frac{(75 A-163 B) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{2} \sqrt{a \sec (c+d x)+a}}\right )}{16 \sqrt{2} a^{5/2} d}-\frac{(39 A-95 B) \tan (c+d x) \sqrt{a \sec (c+d x)+a}}{48 a^3 d}+\frac{(93 A-197 B) \tan (c+d x)}{24 a^2 d \sqrt{a \sec (c+d x)+a}}+\frac{(A-B) \tan (c+d x) \sec ^3(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}+\frac{(9 A-17 B) \tan (c+d x) \sec ^2(c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.654887, antiderivative size = 216, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 33, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.152, Rules used = {4019, 4010, 4001, 3795, 203} \[ -\frac{(75 A-163 B) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{2} \sqrt{a \sec (c+d x)+a}}\right )}{16 \sqrt{2} a^{5/2} d}-\frac{(39 A-95 B) \tan (c+d x) \sqrt{a \sec (c+d x)+a}}{48 a^3 d}+\frac{(93 A-197 B) \tan (c+d x)}{24 a^2 d \sqrt{a \sec (c+d x)+a}}+\frac{(A-B) \tan (c+d x) \sec ^3(c+d x)}{4 d (a \sec (c+d x)+a)^{5/2}}+\frac{(9 A-17 B) \tan (c+d x) \sec ^2(c+d x)}{16 a d (a \sec (c+d x)+a)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4019
Rule 4010
Rule 4001
Rule 3795
Rule 203
Rubi steps
\begin{align*} \int \frac{\sec ^4(c+d x) (A+B \sec (c+d x))}{(a+a \sec (c+d x))^{5/2}} \, dx &=\frac{(A-B) \sec ^3(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac{\int \frac{\sec ^3(c+d x) \left (3 a (A-B)-\frac{1}{2} a (3 A-11 B) \sec (c+d x)\right )}{(a+a \sec (c+d x))^{3/2}} \, dx}{4 a^2}\\ &=\frac{(A-B) \sec ^3(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac{(9 A-17 B) \sec ^2(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{\int \frac{\sec ^2(c+d x) \left (a^2 (9 A-17 B)-\frac{1}{4} a^2 (39 A-95 B) \sec (c+d x)\right )}{\sqrt{a+a \sec (c+d x)}} \, dx}{8 a^4}\\ &=\frac{(A-B) \sec ^3(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac{(9 A-17 B) \sec ^2(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}-\frac{(39 A-95 B) \sqrt{a+a \sec (c+d x)} \tan (c+d x)}{48 a^3 d}+\frac{\int \frac{\sec (c+d x) \left (-\frac{1}{8} a^3 (39 A-95 B)+\frac{1}{4} a^3 (93 A-197 B) \sec (c+d x)\right )}{\sqrt{a+a \sec (c+d x)}} \, dx}{12 a^5}\\ &=\frac{(A-B) \sec ^3(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac{(9 A-17 B) \sec ^2(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(93 A-197 B) \tan (c+d x)}{24 a^2 d \sqrt{a+a \sec (c+d x)}}-\frac{(39 A-95 B) \sqrt{a+a \sec (c+d x)} \tan (c+d x)}{48 a^3 d}-\frac{(75 A-163 B) \int \frac{\sec (c+d x)}{\sqrt{a+a \sec (c+d x)}} \, dx}{32 a^2}\\ &=\frac{(A-B) \sec ^3(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac{(9 A-17 B) \sec ^2(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(93 A-197 B) \tan (c+d x)}{24 a^2 d \sqrt{a+a \sec (c+d x)}}-\frac{(39 A-95 B) \sqrt{a+a \sec (c+d x)} \tan (c+d x)}{48 a^3 d}+\frac{(75 A-163 B) \operatorname{Subst}\left (\int \frac{1}{2 a+x^2} \, dx,x,-\frac{a \tan (c+d x)}{\sqrt{a+a \sec (c+d x)}}\right )}{16 a^2 d}\\ &=-\frac{(75 A-163 B) \tan ^{-1}\left (\frac{\sqrt{a} \tan (c+d x)}{\sqrt{2} \sqrt{a+a \sec (c+d x)}}\right )}{16 \sqrt{2} a^{5/2} d}+\frac{(A-B) \sec ^3(c+d x) \tan (c+d x)}{4 d (a+a \sec (c+d x))^{5/2}}+\frac{(9 A-17 B) \sec ^2(c+d x) \tan (c+d x)}{16 a d (a+a \sec (c+d x))^{3/2}}+\frac{(93 A-197 B) \tan (c+d x)}{24 a^2 d \sqrt{a+a \sec (c+d x)}}-\frac{(39 A-95 B) \sqrt{a+a \sec (c+d x)} \tan (c+d x)}{48 a^3 d}\\ \end{align*}
Mathematica [A] time = 2.57115, size = 161, normalized size = 0.75 \[ \frac{\tan (c+d x) \left (\sqrt{1-\sec (c+d x)} \left (32 (3 A-5 B) \sec ^2(c+d x)+(255 A-503 B) \sec (c+d x)+147 A+32 B \sec ^3(c+d x)-299 B\right )-6 \sqrt{2} (75 A-163 B) \cos ^4\left (\frac{1}{2} (c+d x)\right ) \sec ^2(c+d x) \tanh ^{-1}\left (\frac{\sqrt{1-\sec (c+d x)}}{\sqrt{2}}\right )\right )}{48 d \sqrt{1-\sec (c+d x)} (a (\sec (c+d x)+1))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.275, size = 795, normalized size = 3.7 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.613782, size = 1474, normalized size = 6.82 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (A + B \sec{\left (c + d x \right )}\right ) \sec ^{4}{\left (c + d x \right )}}{\left (a \left (\sec{\left (c + d x \right )} + 1\right )\right )^{\frac{5}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 10.1536, size = 420, normalized size = 1.94 \begin{align*} \frac{\frac{{\left ({\left (3 \,{\left (\frac{2 \, \sqrt{2}{\left (A a^{5} - B a^{5}\right )} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2}}{a^{6} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )} + \frac{\sqrt{2}{\left (15 \, A a^{5} - 23 \, B a^{5}\right )}}{a^{6} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )}\right )} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - \frac{4 \, \sqrt{2}{\left (75 \, A a^{5} - 167 \, B a^{5}\right )}}{a^{6} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )}\right )} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + \frac{3 \, \sqrt{2}{\left (83 \, A a^{5} - 155 \, B a^{5}\right )}}{a^{6} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )}\right )} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )}{{\left (a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - a\right )} \sqrt{-a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a}} - \frac{3 \, \sqrt{2}{\left (75 \, A - 163 \, B\right )} \log \left ({\left | -\sqrt{-a} \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + \sqrt{-a \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + a} \right |}\right )}{\sqrt{-a} a^{2} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )}}{96 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]